home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / COMMUNIC / TERMINAL / 1589.ZIP / TEST.C < prev    next >
Text File  |  1989-03-22  |  407b  |  20 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6. char  test[70];
  7.  
  8. strcat( test,"0123456789");
  9. strcat( test,"0123456789");
  10. strcat( test,"0123456789");
  11. strcat( test,"0123456789");
  12. strcat( test,"0123456789");
  13. strcat( test,"0123456789");
  14. strcat( test,"0123456789");
  15. test[50] = '!';
  16. printf("test[50] = %c, *(test+50) = %c, *(test+50*sizeof(char)) = %c\n",
  17.    test[50], *(test+50), *(test+50*sizeof(char)) );
  18.  
  19. }
  20.